export const imgerror = {
  // el 指令所在的元素
  // binding 指令的相关信息对象, binding.value 指令的值
  inserted(el, binding) {
    el.onerror = function() {
      // console.log('图片裂了')
      el.src = binding.value
    }
  }
}
export const color = {
  inserted(el, binding) {
    el.style.color = binding.value
  }
}
